Skip to main content

mobileCanTrackHeading

Type

function

Summary

Returns true if the device can track the heading using a digital compass, false otherwise.

Syntax

mobileCanTrackHeading()

Description

Use the mobileCanTrackHeading function to check whether the device has the necessary hardware support for tracking the heading using a digital compass.

Examples

get mobileCanTrackHeading()
if mobileCanTrackHeading() is "true" then 
answer "The heading can be tracked"
end if

Value

NameTypeDescription

return

The mobileCanTrackHeading function returns true if the device can track the heading and false otherwise.

function: mobileSensorReading

message: trackingError, headingChanged

command: mobileStopTrackingSensor, mobileStartTrackingSensor

Compatibility and Support

Introduced

LiveCode 4.6.1

OS

ios

android

Platforms

mobile

Thank you for your feedback!

Was this page helpful?